package com.beans;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;


//   五大注解把bean存入spring容器
//@Controller   控制器
//@Component    组件
//@Repository   仓库
//@Service      服务
@Configuration   //配置
public class UserController {
    public void sayHi() {
        System.out.println("你好 usercontroller");
    }
}
